package com.zhuiyi.yiqingbackend.domain;

import com.zhuiyi.yiqingbackend.domain.request.MasterAddRequest;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Master implements Serializable {
    private static final long serialVersionUID = 1L;

    private  int id;
    private  int baseId;
    private String em;
    private String message;//事件详情
    private int estatus;
    private String time;    //事件登记时间
    private String title;   //事件标题

    public Master(MasterAddRequest request, int baseId) {
        this.baseId = baseId;
        this.message = request.getMessage();
        this.time = request.getTime();
        this.title = request.getTitle();
    }

    public Master(int id,String time, String title, String message) {
        this.id = id;
        this.time = time;
        this.title = title;
        this.message = message;
    }
    public Master(int id, int estatus) {
        this.id = id;
        this.estatus = estatus;
    }


    public Master(MasterAddRequest request) {
        this.message= request.getMessage();
        this.time=request.getTime();
        this.title= request.getTitle();
    }
}
